package com.person.swagger.util;
/*
 *@Description  json格式化
 *@Author java02
 *@Date 2018/8/9 9:22
 *
*/

import com.alibaba.fastjson.JSON;

import java.util.Map;

public class JsonXMLUtils {
    public static <T> T map2obj(Map <?, ?> map, Class <T> clazz) throws Exception {
        return JSON.parseObject(JSON.toJSONString(map), clazz);
    }
}
